package com.igrid.demo.client;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.user.client.Event;
import com.google.gwt.user.client.ui.Widget;

/**
 * 
 * Resize event handler
 * 
 * @author cuij
 * @Date 2009-7-9
 * @see ResizeEventSource
 */
public interface ResizeHandler extends EventHandler{

	
	/**
	 * Invoke once user release the mouser and decide to resize the column to the target width.
	 * <p>
	 * It should be triggered from a UserResizeEventSource instance.
	 * <p>
	 * 
	 * @param sender target element
	 * @param event MouseUp event
	 * @param offSetX X coordinator offset units. If the units is  greater than zero ,means user resizing is from RTL,
	 * 				  else LTR.
	 *  
	 */
	public void onResize(Widget sender,Event event,int offSetX);
	
}
